<style>
    legend {
        padding-bottom: 5px;
        font-size: 14px;
        font-weight: 600;
        padding-left: 10px;
        padding-right: 15px;
        color: #6a6a6a;
        margin-top: 16px;
    }
    .box-title{
        font-size: 14px!important;
    }
    th,td{
        text-align: center;
    }
    td textarea{
        width: 100%;
    }
</style>
<div class="content">
    <form role="form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="box">
            <div class="box-header with-border">
                <span class="box-title">系统配置</span>
            </div>
            <div class="box-body">
                <legend>单据配置</legend>
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <th style="width: 20%">配置项</th>
                        <th style="width: 40%">内容</th>
                        <th>说明</th>
                    </tr>
                    <tr>
                        <td>{$config_rows.billshowway.title}</td>
                        <td>
                            <div class="radio">
                                <label for="billshowway-menu"><input id="billshowway-menu" {if $config_rows.billshowway.value == "menu"}checked="checked"{/if} name="row[billshowway]" type="radio" value="menu"> 作为菜单项</label>
                                <label for="billshowway-page"><input id="billshowway-page" {if $config_rows.billshowway.value == "page"}checked="checked"{/if} name="row[billshowway]" type="radio" value="page"> 页内列表</label>
                            </div>
                        </td>
                        <td>
                            <span>{$config_rows.billshowway.description}</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <legend>电子单据二维码</legend>
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <th style="width: 20%">配置项</th>
                        <th style="width: 40%">内容</th>
                        <th>说明</th>
                    </tr>
                    <tr>
                        <td>{$config_rows.qrcode.title}</td>
                        <td>
                            <div class="radio">
                                <label for="qrcode-true"><input id="qrcode-true" {if $config_rows.qrcode.value == "true"}checked="checked"{/if} name="row[qrcode]" type="radio" value="true"> 附加</label>
                                <label for="qrcode-false"><input id="qrcode-false" {if $config_rows.qrcode.value == "false"}checked="checked"{/if} name="row[qrcode]" type="radio" value="false"> 不附加</label>
                            </div>
                        </td>
                        <td>
                            <span>{$config_rows.qrcode.description}</span>
                        </td>
                    </tr>
                    <tr>
                        <td>{$config_rows.qrcodepos.title}</td>
                        <td>
                            <div class="radio">
                                <label for="qrcodepos-topleft"><input id="qrcodepos-topleft" {if $config_rows.qrcodepos.value == "topleft"}checked="checked"{/if} name="row[qrcodepos]" type="radio" value="topleft"> 左上</label>
                                <label for="qrcodepos-bottomleft"><input id="qrcodepos-bottomleft" {if $config_rows.qrcodepos.value == "bottomleft"}checked="checked"{/if} name="row[qrcodepos]" type="radio" value="bottomleft"> 左下</label>
                                <label for="qrcodepos-topright"><input id="qrcodepos-topright" {if $config_rows.qrcodepos.value == "topright"}checked="checked"{/if} name="row[qrcodepos]" type="radio" value="topright"> 右上</label>
                                <label for="qrcodepos-bottomright"><input id="qrcodepos-bottomright" {if $config_rows.qrcodepos.value == "bottomright"}checked="checked"{/if} name="row[qrcodepos]" type="radio" value="bottomright"> 右下</label>
                            </div>
                        </td>
                        <td>
                            <span>{$config_rows.qrcodepos.description}</span>
                        </td>
                    </tr>
                    <tr>
                        <td>{$config_rows.qrcodesize.title}</td>
                        <td>
                            <input name="row[qrcodesize]" type="number" value="{$config_rows.qrcodesize.value|htmlentities}">
                        </td>
                        <td>
                            <span>{$config_rows.qrcodesize.description}</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <legend>电子签名验证</legend>
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <th style="width: 20%">配置项</th>
                        <th style="width: 40%">内容</th>
                        <th>说明</th>
                    </tr>
                    <tr>
                        <td>{$config_rows.signature.title}</td>
                        <td>
                            <div class="radio">
                                <label for="signature-true"><input id="signature-true" {if $config_rows.signature.value == "true"}checked="checked"{/if} name="row[signature]" type="radio" value="true"> 签名</label>
                                <label for="signature-false"><input id="signature-false" {if $config_rows.signature.value == "false"}checked="checked"{/if} name="row[signature]" type="radio" value="false"> 不签名</label>
                            </div>
                        </td>
                        <td>
                            <span>{$config_rows.signature.description}</span>
                        </td>
                    </tr>
                    <tr>
                        <td>{$config_rows.certificate.title}</td>
                        <td>
                            <textarea name="row[certificate]" rows="5">{$config_rows.certificate.value|htmlentities}</textarea>
                        </td>
                        <td>
                            <span>{$config_rows.certificate.description}</span>
                        </td>
                    </tr>
                    <tr>
                        <td>{$config_rows.privatekey.title}</td>
                        <td>
                            <textarea name="row[privatekey]" rows="5">{$config_rows.privatekey.value|htmlentities}</textarea>
                        </td>
                        <td>
                            <span>{$config_rows.privatekey.description}</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="box-footer clearfix">
                <div class="pull-right">
                    <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </div>
    </form>
</div>

